﻿// <copyright file="AuthenticationType.cs" company="SharpSTS">
// Copyright (c) 2007, 2008 All Right Reserved, http://sharpsts.com/
//
// This source is subject to the Microsoft Permissive License.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY 
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// </copyright>
// <author>Barry Dorrans</author>
// <email>barryd@idunno.org</email>
// <date>2008-06-10</date>
// <summary>Contains a base, abstract class for an AuthorisationPolicyProvider</summary>

namespace SharpSTS
{
    using System.Runtime.Serialization;

    /// <summary>
    /// Specifies the authentication type used by the underlying endpoint or by the managed card.
    /// </summary>
    [DataContract(Namespace = CardControl.Constants.Namespaces.Data)]
    public enum AuthenticationType
    {
        /// <summary>
        /// Specifies user name and password authentication.
        /// </summary>
        [EnumMember]
        UserNamePassword = 0,

        /// <summary>
        /// Specifies self issued card backed authentication.
        /// </summary>
        [EnumMember]
        SelfIssued = 1,

        /// <summary>
        /// Specifies certificate backed authentication.
        /// </summary>
        [EnumMember]
        Certificate = 2,

        /// <summary>
        /// Specifies Kerberos authentication.
        /// </summary>
        [EnumMember]
        Kerberos = 3
    }
}